package com.ruoyi.xyq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收支记录对象 details
 * 
 * @author ruoyi
 * @date 2025-05-19
 */
public class Details extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 收入 */
    @Excel(name = "收入")
    private Long income;

    /** 支出 */
    @Excel(name = "支出")
    private Long expense;

    /** 服务名 */
    @Excel(name = "服务名")
    private String title;

    /** 账单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 商户id */
    private int merchantId;

    public int getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(int merchantId) {
        this.merchantId = merchantId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getIncome() {
        return income;
    }

    public void setIncome(Long income) {
        this.income = income;
    }

    public void setExpense(Long expense)
    {
        this.expense = expense;
    }

    public Long getExpense() 
    {
        return expense;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("income", getIncome())
            .append("expense", getExpense())
            .append("title", getTitle())
            .append("time", getTime())
            .toString();
    }
}
